package com.chenhs.oop.study.集合;

/**
 * @program: JAVA300
 * @description: 实现linkedList所使用的节点对象
 * @author: peanut
 * @create: 2019-03-09 16:32
 */
public class Node {
    /*上一个节点*/
    Node  previouse;
    /*节点包含的元素*/
    Object element;
    /*下一个节点*/
    Node  next;

    public Node(Node previouse,Node next, Object element ){
        super();
        this.previouse=previouse;
        this.element=element;
        this.next=next;
    }
    public Node( Object element ){
        super();
        this.previouse=previouse;
        this.element=element;
        this.next=next;
    }

    public Node getPreviouse() {
        return previouse;
    }

    public void setPreviouse(Node previouse) {
        this.previouse = previouse;
    }

    public Object getElement() {
        return element;
    }

    public void setElement(Object element) {
        this.element = element;
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }




}
